Optimal. Leaf size=60 \[ -\frac {F_1\left (\frac {1}{2};-n,1;\frac {3}{2};1-\sin (e+f x),\frac {1}{2} (1-\sin (e+f x))\right ) \cos (e+f x)}{f \sqrt {a+a \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 60, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {2866, 2864,
129, 440} \begin {gather*} -\frac {\cos (e+f x) F_1\left (\frac {1}{2};-n,1;\frac {3}{2};1-\sin (e+f x),\frac {1}{2} (1-\sin (e+f x))\right )}{f \sqrt {a \sin (e+f x)+a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 129
Rule 440
Rule 2864
Rule 2866
Rubi steps
\begin {align*} \int \frac {\sin ^n(e+f x)}{\sqrt {a+a \sin (e+f x)}} \, dx &=\frac {\sqrt {1+\sin (e+f x)} \int \frac {\sin ^n(e+f x)}{\sqrt {1+\sin (e+f x)}} \, dx}{\sqrt {a+a \sin (e+f x)}}\\ &=-\frac {\cos (e+f x) \text {Subst}\left (\int \frac {(1-x)^n}{(2-x) \sqrt {x}} \, dx,x,1-\sin (e+f x)\right )}{f \sqrt {1-\sin (e+f x)} \sqrt {a+a \sin (e+f x)}}\\ &=-\frac {(2 \cos (e+f x)) \text {Subst}\left (\int \frac {\left (1-x^2\right )^n}{2-x^2} \, dx,x,\sqrt {1-\sin (e+f x)}\right )}{f \sqrt {1-\sin (e+f x)} \sqrt {a+a \sin (e+f x)}}\\ &=-\frac {F_1\left (\frac {1}{2};-n,1;\frac {3}{2};1-\sin (e+f x),\frac {1}{2} (1-\sin (e+f x))\right ) \cos (e+f x)}{f \sqrt {a+a \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(234\) vs. \(2(60)=120\).
time = 1.28, size = 234, normalized size = 3.90 \begin {gather*} \frac {\cos (e+f x) \sin ^{2 n}(e+f x) \left (-\sin ^2(e+f x)\right )^{-n} \sqrt {a (1+\sin (e+f x))} \left (1-\frac {1}{1+\sin (e+f x)}\right )^{-n} \left (4 F_1\left (-\frac {1}{2}-n;-\frac {1}{2},-n;\frac {1}{2}-n;\frac {2}{1+\sin (e+f x)},\frac {1}{1+\sin (e+f x)}\right ) (-\sin (e+f x))^n \sqrt {\frac {-1+\sin (e+f x)}{1+\sin (e+f x)}}-(1+2 n) F_1\left (1;\frac {1}{2},-n;2;\frac {1}{2} (1+\sin (e+f x)),1+\sin (e+f x)\right ) \sqrt {2-2 \sin (e+f x)} \left (1-\frac {1}{1+\sin (e+f x)}\right )^n\right )}{4 a f (1+2 n) (-1+\sin (e+f x))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.10, size = 0, normalized size = 0.00 \[\int \frac {\sin ^{n}\left (f x +e \right )}{\sqrt {a +a \sin \left (f x +e \right )}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sin ^{n}{\left (e + f x \right )}}{\sqrt {a \left (\sin {\left (e + f x \right )} + 1\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {{\sin \left (e+f\,x\right )}^n}{\sqrt {a+a\,\sin \left (e+f\,x\right )}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________